package com.dragon.app.thread;

import java.util.Timer;
import java.util.TimerTask;

public class TimerTest {

	public static void main(String[] args) {
		
		Timer timer = new Timer();
		timer.schedule(new MyTask(), 1000);

	}

	static class MyTask extends TimerTask {

		@Override
		public void run() {
			System.out.println("hello,task........");
		}

	}

}
